Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc: stabilize chainhead backend #1802

Merged
merged 14 commits into from
Oct 3, 2024
Merged

Conversation

niklasad1
Copy link
Member

@niklasad1 niklasad1 commented Oct 1, 2024

Close #1753

@niklasad1 niklasad1 requested a review from a team as a code owner October 1, 2024 13:10
@niklasad1 niklasad1 changed the title rpc: stabilize ChainHeadBackend WIP rpc: stabilize ChainHeadBackend Oct 2, 2024
@niklasad1 niklasad1 requested a review from a team as a code owner October 2, 2024 09:28
@niklasad1 niklasad1 changed the title WIP rpc: stabilize ChainHeadBackend rpc: stabilize chainhead backend Oct 2, 2024
Comment on lines 114 to 115
/// On native this is spawned on the tokio runtime.
/// On web this is spawned on the wasm_bindgen.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// On native this is spawned on the tokio runtime.
/// On web this is spawned on the wasm_bindgen.
/// On native this task is spawned on the tokio runtime.
/// On web this task is spawned via wasm_bindgen.

Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

From our chat in the rust call I think we agree that it's worth adding eg a "runtime" feature flag which on native enables the relevant tokio thing and on web enables the web thing, but we could leave this for a separate PR and I don't think it's super urgent!

I guess raising an issue to look at the subscriptions halting is the other thing to do, but again not related to this PR :)

subxt/Cargo.toml Outdated Show resolved Hide resolved
@niklasad1 niklasad1 merged commit 3807b29 into master Oct 3, 2024
13 checks passed
@niklasad1 niklasad1 deleted the stabilize-chainhead-backend branch October 3, 2024 16:14
@jsdw jsdw mentioned this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stabilise the UnstableBackend
3 participants